validatedRegistry

fun <T : Any> List<Identifier>.validatedRegistry(registry: Registry<T>): ValidatedList<Identifier>

Shorthand Validated Identifier List, validated with a registry

List used will be the default

Return

ValidatedList wrapping the list and registry validation

Author

fzzyhmstrs

Since

0.2.0

Parameters

T

the registry type

registry

Registry used to validate entries


fun <T : Any> List<Identifier>.validatedRegistry(registry: Registry<T>, predicate: BiPredicate<Identifier, RegistryEntry<T>>): ValidatedList<Identifier>

Shorthand Validated Identifier List, validated with a predicated registry

List used will be the default

Return

ValidatedList wrapping the list and predicated registry validation

Author

fzzyhmstrs

Since

0.2.0

Parameters

T

the registry type

registry

Registry used to validate entries

predicate

BiPredicateRegistryEntry>


fun <T : Any> Set<Identifier>.validatedRegistry(registry: Registry<T>): ValidatedSet<Identifier>

Shorthand Validated Identifier Set, validated with a registry

Set used will be the default

Return

ValidatedSet wrapping the set and registry validation

Author

fzzyhmstrs

Since

0.2.0

Parameters

T

the registry type

registry

Registry used to validate entries


fun <T : Any> Set<Identifier>.validatedRegistry(registry: Registry<T>, predicate: BiPredicate<Identifier, RegistryEntry<T>>): ValidatedSet<Identifier>

Shorthand Validated Identifier Set, validated with a predicated registry

Set used will be the default

Return

ValidatedSet wrapping the set and predicated registry validation

Author

fzzyhmstrs

Since

0.2.0

Parameters

T

the registry type

registry

Registry used to validate entries

predicate

BiPredicateRegistryEntry>